package com.homestay.service;

import com.homestay.beans.Home;
import com.homestay.exception.UsedException;


import java.util.List;

public interface HomeService {

    int addHome(Home home);
    int deleteHome(int id) throws UsedException;
    int updateHome(Home home);
    Home getHomeById(int id);
    List<Home> getAllHomes(String num);
    List<Home> getHomesByState(String state);
    int updateHomeState(int id, String state);
}
